<%-- 
    Document   : top_content
    Created on : Nov 27, 2011, 4:39:48 PM
    Author     : Ngoc Linh
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>

<div id="top_content">
    <div id="featured">
        <img src="images/featured.png" alt="" />
        <a href="#" id="btnDatGia">
            <img src="images/btn_DatGia_Featured.png" alt="" /></a>
    </div>
    <div class="top_content_panel">
        <p class="header_top_content_panel">
            SẢN PHẨM VỪA CHIẾN THẮNG</p>
        <div class="top_content_panel_content">
            <c:if test="${not empty sessionScope.daugiathanhcong}">
                <c:set var="sanpham" value="${sessionScope.daugiathanhcong.chitietdaugia.sanpham}"/>
                <p id="panel_title_product">${sanpham.tenSanPham}</p>
                <c:url var="linkdetail" value="product.do">
                    <c:param name="masp" value="${sanpham.maSanPham}"/>                    
                </c:url>
                <p class="img_product">
                    <a href="${linkdetail}" title="Xem thông tin sản phẩm"><img src="${sanpham.hinhMoTa}" alt="Hình SP" width="120" height="140"/></a>
                </p>
                <div id="panel_detail_product">
                    <p>Giá thị trường: <strong><fmt:formatNumber pattern="###,###" value="${sanpham.giaMuaNgay}" ></fmt:formatNumber> VNĐ</strong></p>
                    <p>Giá chiến thắng: <strong id="price_win"><fmt:formatNumber pattern="###,###" value="${sessionScope.daugiathanhcong.giaKhopLenh}" ></fmt:formatNumber> VNĐ</strong></p>
                    <p>Kết thúc : <strong><fmt:formatDate pattern="dd/mm/yyyy HH:mm" value="${sessionScope.daugiathanhcong.chitietdaugia.thoiGiandaugia}"></fmt:formatDate></strong></p>
                    <p>Người chiến thắng: <a href="#" title="Xem các sản phẩm của ${sessionScope.daugiathanhcong.taikhoan.tenTaiKhoan}">${sessionScope.daugiathanhcong.taikhoan.tenTaiKhoan}</a></p>
                </div>          
            </c:if>                          
            <!-- End #panel_detail_product-->
        </div>
    </div>
</div>